package com.sevntu.apvs.lab1;

public class WorkWithGraphs {
	public static void main(String[] args) {
		try {
			SourceGraphData graphData = new SourceGraphData(args[0]);
			ObtainFunction function = new ObtainFunction(
					graphData.getArcGivenCount(),
					graphData.getNodeCurrentCount(),
					graphData.getArcCurrentCount(),
					graphData.getModelRAM()
					);
			PrintOutputDataToFile printData = new PrintOutputDataToFile(args[1]);
			printData.printResult(function.getResult(), function.getSum());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
